﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace GUI2.Controler
{
    public partial class FrmMota : Office2007Form
    {
        FrmSanpham Sanpham;
        public FrmMota(FrmSanpham Sanpham)
        {
            this.Sanpham = Sanpham;
            InitializeComponent();
        }

        public event delegateA TruyenNoidungMotaHinhanh = null;

        private void btnChapnhan_Click(object sender, EventArgs e)
        {
            if (TruyenNoidungMotaHinhanh!=null)
            {
                TruyenNoidungMotaHinhanh(this, new Sukien { noidungtruyendi = txtNoidung.Text });
            }
            Close();
        }
    }
}
